/**
 * 2025/01/01 - 2025/12/31
 */
package com.snail.server.iam.resource.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.snail.server.iam.resource.entity.Resource;
import com.snail.server.iam.resource.mapper.ResourceMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author zgadmin
 * @date 2025/9/26 19:13
 *
 */
@Service
public class ResourceService extends ServiceImpl<ResourceMapper, Resource> {

    public List<Resource> list(Long appId) {
        return list(Wrappers.lambdaQuery(Resource.class).eq(Resource::getAppId, appId));
    }

}